package com.study.lk.exe1;


/**
 * @author lk
 * @date 2021/3/26 0026 13:57
 * @description: 双重校验下的日志处理类
 */
public class LogSingle {
    private volatile static LogSingle logger;

    private LogSingle() {
    }

    public static LogSingle getUniqueLogger() {
        if (logger == null) {
            synchronized (LogSingle.class) {
                if (logger == null) {
                    logger = new LogSingle();
                }
            }
        }
        return logger;
    }
}
